home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / programmer / 3486 < prev    next >
Encoding:
Text File  |  1996-08-05  |  1.6 KB  |  46 lines

  1. Path: sn.no!not-for-mail
  2. From: christon@sn.no (Christopher Naas)
  3. Newsgroups: comp.sys.amiga.programmer
  4. Subject: Re: Shared library open and close functions
  5. Date: 20 Feb 1996 17:04:32 +0100
  6. Organization: SN Internett
  7. Message-ID: <1216.6624T889T380@sn.no>
  8. References: <510.6619T1238T1638@Th0r.foo.bar> <DMvCKp.MD4@unx.sas.com>
  9. NNTP-Posting-Host: sinsen.sn.no
  10. X-Newsreader: THOR 2.21 (Amiga;SOUP)
  11.  
  12. Doug Walker wrote:
  13.  
  14. >In version 6.50, you can create a __UserLibInit and __UserLibTerm function
  15. >and they will be automatically called.  Check out your Library Reference
  16. >Manual for more details.
  17.  
  18. Yes, but I have to link with startup=libinitr for sprintf to work. My
  19. smakefile is currently:
  20.  
  21. ------------------------------------------------------------------------------
  22. all: Memory.kbb
  23.  
  24. Memory.o: Memory.c
  25.    sc libcode nostackcheck smallcode smalldata strmerge opt Memory.c gst
  26. include:all.gst math ffp
  27.  
  28. Memory.kbb: Memory.o
  29.    sc link Memory.o lib:scmffp.lib startup=libinitr noicons to Memory.kbb
  30. libfd Memory.fd libversion 1 librevision 0
  31. ------------------------------------------------------------------------------
  32.  
  33. When I link with lib:scmffp to use floating point in sprintf ('%.2f'), I get
  34. an error from sc.lib. The library still works fine, though.
  35.  
  36. Undefined symbols        First Referenced
  37. __XCEXIT                 File 'LIB:sc.lib'
  38. Enter a DEFINE value for __XCEXIT (default ___stub):
  39.  
  40. Why is this, and how do I get rid of it?
  41.  
  42. --
  43. Christopher Landmark Naas    o  EMail: christon@sn.no
  44. LoungeBar Development        o  WWW:   http://www.sn.no/~christon/
  45. Former Reg. Amiga Developer  o  IRC:   KarmaComa
  46.